﻿using System;

namespace AddCollisionLayerToMap
{
    public class Base64Tool
    {
        public static string IntArrayToBase64(int[] array)
        {
            byte[] bytes=new byte[array.Length *4];
            for (int i = 0; i < array.Length; i++)
            {
                Array.Copy(BitConverter.GetBytes(array[i]),0,bytes,i*4,4);
            }

            return Convert.ToBase64String(bytes);
        }
    }
}